package com.lanchetech.dao;
import com.lanchetech.bean.request.PageReq;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.ExpFlow;
import org.apache.ibatis.annotations.Mapper;import java.util.List;

@Mapper
public interface ExpFlowMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ExpFlow record);

    int insertSelective(ExpFlow record);

    ExpFlow selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ExpFlow record);

    int updateByPrimaryKey(ExpFlow record);

    ExpFlow findOneByUserIdAndRelateIdAndType(@Param("userId")Long userId,@Param("relateId")Long relateId,@Param("type")Byte type);

    List<ExpFlow> findAllPage(PageReq req);


}